package com.flurry.android;

import android.content.ComponentName;
import android.content.Context;
import android.content.pm.ActivityInfo;
import android.content.pm.PackageManager;
import android.text.TextUtils;
import android.util.SparseArray;
import java.util.Iterator;
import java.util.List;

final class fi
  implements gj
{
  private static final SparseArray<String> gP = localSparseArray;
  private static final String p = fi.class.getSimpleName();

  static
  {
    SparseArray localSparseArray = new SparseArray();
    localSparseArray.append(1, "mcc");
    localSparseArray.append(2, "mnc");
    localSparseArray.append(4, "locale");
    localSparseArray.append(8, "touchscreen");
    localSparseArray.append(16, "keyboard");
    localSparseArray.append(32, "keyboardHidden");
    localSparseArray.append(64, "navigation");
    localSparseArray.append(128, "orientation");
    localSparseArray.append(256, "screenLayout");
    localSparseArray.append(512, "uiMode");
    localSparseArray.append(1024, "screenSize");
    localSparseArray.append(2048, "smallestScreenSize");
  }

  public final boolean a(Context paramContext, gl paramgl)
  {
    if (paramgl == null)
    {
      bool1 = false;
      return bool1;
    }
    String str1 = paramgl.O();
    if (TextUtils.isEmpty(str1))
      return false;
    List localList = paramgl.bJ();
    if (localList == null)
      return false;
    PackageManager localPackageManager = paramContext.getPackageManager();
    String str2 = paramContext.getPackageName();
    Iterator localIterator = localList.iterator();
    boolean bool1 = true;
    label61: ActivityInfo localActivityInfo1;
    int i;
    if (localIterator.hasNext())
    {
      localActivityInfo1 = (ActivityInfo)localIterator.next();
      if ((!TextUtils.isEmpty(str1)) && (localPackageManager != null) && (!TextUtils.isEmpty(str2)) && (localActivityInfo1 != null) && (!TextUtils.isEmpty(localActivityInfo1.name)))
        break label137;
      i = 0;
    }
    while (true)
    {
      label122: if (i == 0);
      for (boolean bool2 = false; ; bool2 = bool1)
      {
        bool1 = bool2;
        break label61;
        break;
        label137: ActivityInfo localActivityInfo2 = fd.a(localPackageManager, new ComponentName(str2, localActivityInfo1.name));
        if (localActivityInfo2 == null)
        {
          cy.d(p, str1 + ": package=\"" + str2 + "\": AndroidManifest.xml should include activity node with android:name=\"" + localActivityInfo1.name + "\"");
          i = 0;
          break label122;
        }
        new StringBuilder().append(str1).append(": package=\"").append(str2).append("\": AndroidManifest.xml has activity node with android:name=\"").append(localActivityInfo1.name).append("\"").toString();
        int j = localActivityInfo1.configChanges;
        if (j == 0)
          break label476;
        int k = fd.a(localActivityInfo2);
        SparseArray localSparseArray = gP;
        i = 1;
        int m = 0;
        label290: if (m < localSparseArray.size())
        {
          int n = localSparseArray.keyAt(m);
          if ((n & j) != 0)
          {
            if ((n & k) != 0)
              break label400;
            cy.d(p, str1 + ": package=\"" + str2 + "\": AndroidManifest.xml activity node with android:name=\"" + localActivityInfo1.name + "\" should include android:configChanges value=\"" + (String)localSparseArray.valueAt(m) + "\"");
            i = 0;
          }
        }
        while (true)
        {
          m++;
          break label290;
          break;
          label400: new StringBuilder().append(str1).append(": package=\"").append(str2).append("\": AndroidManifest.xml activity node with ").append("android:name=\"").append(localActivityInfo1.name).append("\" has android:configChanges value=\"").append((String)localSparseArray.valueAt(m)).append("\"").toString();
        }
      }
      label476: i = 1;
    }
  }
}

/* Location:           E:\android\Toy Defense 2_dex2jar.jar
 * Qualified Name:     com.flurry.android.fi
 * JD-Core Version:    0.6.2
 */